package com.day15.java;

public class SingletonTest {
    public static void main(String[] args) {

        Bank bank1 = Bank.Instance;

//        Bank.Instance = null;
        Bank bank2 = Bank.Instance;

        System.out.println(bank1 == bank2);
    }
}

class Bank{
    private Bank(){

    }
    public static final Bank Instance = new Bank();
}
